c# use hashtable check if key exists

121

c# use hashtable check if key exists -

// Create hashtable
Hashtable ht = new Hashtable();

// Add a key value pair
ht.Add("001",".Net");

// Check to see if key exists
ht.ContainsKey("001")

Comments

Submit
0 Comments